import { Expression } from '../node';


/**
 * 条件表达式
 */
export class ConditionalExpression extends Expression {
  /**
   * 检测条件
   */
  readonly test: Expression;

  /**
   * 第一个值
   */
  readonly first: Expression;

  /**
   * 第二个值
   */
  readonly second: Expression;

  constructor(test: Expression, first: Expression, second: Expression) {
    super();

    this.test =test;
    this.first = first;
    this.second = second;
  }
}
